<script>
	var pnum = {$pnum};
	{if condition="(isset($filter)) AND ($filter)"}
	var filter = {$filter};
	{/if}
	{if condition="(!isset($search)) OR (!$search)"}
	var search = 0;
	var goUrl = "/{$Request.module}/order_zong/lst/filter/"+filter+".html?page="+pnum;
	{else/}
	var search = {$search};
	var goUrl = "/{$Request.module}/order_zong/search.html?page="+pnum;
	{/if}
</script> 

                        <table class="table table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th style="width:20%">交易编号</th>
                                    <th style="width:15%">订单状态</th>
                                    <th style="width:15%">支付方式</th>
                                    <th style="width:15%">总价</th>
                                    <th style="width:15%">下单时间</th>                                
                                    <th style="width:10%">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            {if condition="$list->isEmpty() == false"}
							{foreach name="list" item="v"} 
                                <tr>
                                    <td>{$v.order_number}</td>
                                    <td>
                                    {if condition="$v['state'] eq 1"}
                                    <font style="color:#1992FC;">已支付</font>
                                    {elseif condition="$v['state'] eq 0"/}
                                    <font style="color:#1c84c6;">待支付</font>                                                                                                                                                                             
                                    {/if}                                                               
                                    </td>
                                    <td>
                                    {switch name="v.zf_type"}
                                    {case value="1"}
                                                                                                    支付宝支付
                                    {/case}
                                    {case value="2"}
                                                                                                    微信支付
                                    {/case} 
                                    {case value="3"}
                                                                                                    余额支付
                                    {/case}   
                                    {default /}/                            
                                    {/switch}                                                             
                                    </td>
                                    <td>{$v.total_price}&nbsp;元</td>
                                    <td>{:date('Y-m-d H:i:s',$v['addtime'])}</td>
                                    <td>
                                    <button type="button" class="btn btn-danger btn-xs" onclick="delone({$v.id},this);"><i class="fa fa-close"></i>&nbsp;删除</button>
                                    </td>
                                </tr>
							{/foreach}
							{else/}
							<tr><td colspan="6" style="text-align:center; font-size:14px;">没有找到相关数据</td></tr>
							{/if}						
                            </tbody>
                        </table>
                        <div class="row"><div class="pagination" style="float:right; margin-right:20px;">{$page}</div></div>